package com.gustuy.Annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

 public class test1 {
    @MyAnnotation(name="Gustuy",schools = {"清华,北大"})
    public void test(){

    }
}
@Target(value = {ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@interface MyAnnotation{
    String name() default "";
    int age()default 0;
    int id() default -1;

    String[] schools();
}